import java.util.Random;


public class Person {
	public String LastName;
	public String FirstName;
	private String SSN;
	
	public Person()
	{
		LastName = "Morgan";
		FirstName = "Tommy";
		SSN = "123-45-6789";
	}
	
	public Person(String FirstName, String LastName, String SSN )
	{
		this.LastName = LastName;
		this.FirstName = FirstName;
		this.SSN = SSN;
	}
	
	public boolean equals(Object object)
	{
		if(object.getClass() == Person.class) 
			{
				if(((Person) object).SSN == this.SSN)
					return true;
			}
		return false;
		//if(((Person) object).getSSN().equals(this.getSSN())) return true;
		//else return false;
	}
	
	public int hashCode()
	{
		return this.SSN.hashCode();
	}
	
	public String getSSN()
	{
		return SSN + "";
	}
	
	public String toString()
	{
		return "The name is " + this.FirstName + " " + this.LastName;
	}
}
